﻿using ChestPainCenterSystem.ServiceReference1;
using ChestPainCenterSystem.ThreeCenterManage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ChestPainCenterSystem.Areas.ChestPainCenter.Controllers
{
    public class PathwayController : BaseController
    {
        static string PathwayID = string.Empty;
        // GET: /ChestPainCenter/Pathway/
        public static ThreeCenterManageSoapClient service = new ThreeCenterManageSoapClient();
        public ActionResult Index(string id, string age, string sex, string disease)
        {
            PathwayID = id;
            return View();
        }
        public ActionResult Index1(string id, string age, string sex, string disease)
        {
            return View();
        }
        public JsonResult Action(string Pid)
        {
            var Data = service.GetTimeline(PathwayID);
            if (Data.S == true)
            {
                return JSON(Data.D);
            }
            return JSON("");
        }
    }
}
